package com.youway.ddd.demo2.interfaces.dto;





import java.util.List;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

import com.youway.ddd.demo2.domain.entity.BookshelfSpace;

import lombok.Data;

@Data
public class AddStoreDTO {

	/**
     * Id  聚合根Id
     */
    @NotNull(message = "书架空间ID不允许为空")
    private Long bookshelfSpaceId;
    
    @Valid
    @NotNull(message = "新增的信息不允许为空")
    private List<BookshelfSpace> stores;
}
